﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace TestProject
{
    class Test
    {
        static void Main()
        {
           string text = "Testing is important. We need to test everything.";
           string pattern = @"\w*test\w*";

           Regex regex = new Regex(pattern, RegexOptions.IgnoreCase);

           Match  match= regex.Match(text);
           while (match.Success)
           {
               Console.WriteLine(match.Value);
               match = match.NextMatch();
           }


        }

    }
}
